﻿using System.ComponentModel.DataAnnotations;

namespace Entity.BaseInfo.DTO.Customer
{
    /// <summary>
    /// 客户模型 - 更新
    /// </summary>
    public class CustomerUpdateDTO
    {
        /// <summary>
        /// 客户id
        /// </summary>
        [Required(ErrorMessage = "客户Id不能为空")]
        public string Id { get; set; }

        /// <summary>
        /// 客户编码
        /// </summary>
        [Required(ErrorMessage = "客户编码Code不能为空")]
        public string Code { get; set; }

        /// <summary>
        /// 客户姓名
        /// </summary>
        [Required(ErrorMessage = "客户名称Name不能为空")]
        public string Name { get; set; }

        /// <summary>
        /// 客户性别
        /// </summary>
        public string? Sex { get; set; }

        /// <summary>
        /// 客户年龄
        /// </summary>
        public string? Age { get; set; }

        /// <summary>
        /// 客户联系方式
        /// </summary>
        [Required(ErrorMessage = "客户联系方式Phone不能为空")]
        public string Phone { get; set; }
    }
}
